from cx_Freeze import setup, Executable
import sys

base = None
if sys.platform == "win32":
    base = "Win32GUI"


build_exe_options = {"packages": ["os", "shutil", "tkinter", "tkcalendar",
                                  "pymysql", "csv", "configparser", "loguru", "socket"], "include_files": ["conf/", "static/"]}

build_msi_options = {
    "upgrade_code": "{01234567-89AB-CDEF-0123-456789ABCDEF}"
}


setup(
    name="gms_tools",
    version="1.2.0",
    description="GMS工具",
    executables=[Executable("gms_tools.py", shortcut_name="gms-tools",
                            shortcut_dir="DesktopFolder", icon="static/app.ico", base=base)],
    options={
        "build_exe": build_exe_options,
        "bdist_msi": build_msi_options
    }

)


# python setup.py build
# python setup.py bdist_msi
